package source.events;

import source.model.*;

public class ViewObjectEvent extends ViewEvent {
	
	int targetPlayer;
	ViewEventType type;
	
	GameObject targetObject;
	Position targetPosition;
	
	public ViewObjectEvent(int pid, ViewEventType vet) {
		super(pid, vet);

		targetObject = null;
		targetPosition = null;
	}
	
	public ViewObjectEvent(int pid, ViewEventType vet, GameObject gobj, Position pos)
	{
		super(pid, vet);
		
		targetObject = gobj;
		targetPosition = pos;
	}
	
	public GameObject getTargetObject()
	{
		return targetObject;
	}
	
	public Position getTargetPosition()
	{
		return targetPosition;
	}
	
	public String toString()
	{
		return super.toString() + "\nObject: " + targetObject.objectID().toString() +
			"\nPosition: " + targetPosition.toString();
	}

}
